package com.ruoyi.mall.front.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.mall.service.IMallCategoryService;
import com.ruoyi.mall.service.IMallProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 会员地址Controller
 *
 * @author ruoyi
 * @date 2020-05-16
 */
@RestController
@RequestMapping("/mall/front/category")
public class FrontCategorysController extends BaseController {

    @Autowired
    private IMallCategoryService mallCategoryService;
    /**
     * 获取商品分类列表
     *
     * @param
     * @return
     */
    @GetMapping("/")
    public AjaxResult categorys() {
        return AjaxResult.success(mallCategoryService.selectMallCategoryList(null));
    }


}
